/**
 * @author taowei20061122@163.com
 *
 * 2013-9-16 下午03:30:51
 */
package jcore;

import java.io.File;

/**
 * @author taowei20061122@163.com
 *
 * 2013-9-16 下午03:30:51
 */
public class ListAllFileName {
	
	public static String printFileName(String path) {
		File file = new File(path);
		String fileName = "";
		File[] files = file.listFiles();
		for (File f : files) {
			if (f.isDirectory()) {
				fileName = printFileName(f.getAbsolutePath());
			} else {
				fileName = f.getAbsolutePath();
			}
		}
//		if (!fileName.equals("")) {
			System.out.println(fileName+"=UTF-8");
//		}
		
		return fileName;
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String path = "E:/generator-output/java_src";
		printFileName(path);
	}
}
